Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.dam.actions--actions

This contribution is part of XML component org.nuxeo.dam.actions inside nuxeo-dam-jsf-5.8.jar

Extension Point

Extension point actions of component ActionService.

Contributed Items

  • <action id="dam" label="label.main.tab.dam" link="assets" order="50" type="template">
          <category>MAIN_TABS</category>
          <properties>
            <property name="template">/dam/incl/action/dam_main_tab_action_template.xhtml</property>
          </properties>
        </action>
  • <action id="damSaveSearchAction" label="command.save" link="#{damSearchActions.saveSearch()}" order="10">
          <properties>
            <property name="ajaxSupport">true</property>
            <property name="ajaxReRender">
              damPanelLeft
            </property>
          </properties>
        </action>
  • <action id="damSubmitSearch" label="label.dam.search.filter" link="#{damSearchActions.refreshAndRewind()}" order="10">
          <category>DAM_SEARCH_FILTER_ACTIONS</category>
          <properties>
            <property name="ajaxSupport">true</property>
            <property name="ajaxReRender">
              damPanelCenter, damPanelRight, damPanelLeft
            </property>
          </properties>
        </action>
  • <action id="damClearSearch" immediate="true" label="label.dam.search.clear" link="#{damSearchActions.clearSearch()}" order="20">
          <category>DAM_SEARCH_FILTER_ACTIONS</category>
          <properties>
            <property name="ajaxSupport">true</property>
            <property name="ajaxReRender">
              damPanelLeft, damPanelCenter, damPanelRight
            </property>
          </properties>
        </action>
  • <action icon="/icons/contextual_menu/preview.png" id="damShowFancyBoxPreview" label="label.document.preview" order="50" type="fancybox">
          <category>DAM_ASSET_VIEW_ACTIONS</category>
          <filter-id>view_preview</filter-id>
          <filter-id>not_folder</filter-id>
          <filter-id>not_anonymous</filter-id>
          <properties>
            <property name="iframe">
              #{previewActions.getCurrentDocumentPreviewPopupURL()}
            </property>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>
  • <action icon="/icons/contextual_menu/unlocked.png" id="damDocumentLock" label="command.lock" link="#{lockActions.lockCurrentDocument}" order="10" type="link">
          <category>DAM_ASSET_VIEW_ACTIONS</category>
          <filter-id>mutable_document</filter-id>
          <filter-id>can_lock</filter-id>
          <properties>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>
  • <action icon="/icons/contextual_menu/locked.png" id="damDocumentUnlock" label="command.unlock" link="#{lockActions.unlockCurrentDocument}" order="10" type="link">
          <category>DAM_ASSET_VIEW_ACTIONS</category>
          <filter-id>mutable_document</filter-id>
          <filter-id>can_unlock</filter-id>
          <properties>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>
  • <action icon="/icons/contextual_menu/download.png" id="damDownloadAction" label="label.document.download" link="#{operationActionBean.doOperation('downloadFilesZip')}" order="30" type="link">
          <category>DAM_ASSET_VIEW_ACTIONS</category>
          <filter-id>documentHasBlobs</filter-id>
        </action>
  • <action icon="/icons/contextual_menu/share.png" id="damPermalinkAction" label="label.permalink" order="20" type="fancybox">
          <category>DAM_ASSET_VIEW_ACTIONS</category>
          <properties>
            <property name="include">/dam/incl/permalink_box.xhtml</property>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>
  • <action icon="/icons/contextual_menu/subscribe.png" id="damSubscribesAllDocNotifications" label="label.subscriptions.follow" link="#{subscriptionAction.updateAllSubscriptions}" order="40" type="link">
          <category>DAM_ASSET_VIEW_ACTIONS</category>
          <filter-id>hasNoSubscriptions</filter-id>
          <filter-id>canSubscribe</filter-id>
          <properties>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>
  • <action icon="/icons/contextual_menu/unsubscribe.png" id="damUnsubscribesAllDocNotifications" label="label.subscriptions.unfollow" link="#{subscriptionAction.updateAllSubscriptions}" order="40" type="link">
          <category>DAM_ASSET_VIEW_ACTIONS</category>
          <filter-id>hasSubscriptions</filter-id>
          <filter-id>canSubscribe</filter-id>
          <properties>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>
  • <action icon="/icons/action_add.gif" id="damAddCurrentDocumentToWorklist" immediate="true" label="help.command.clipboard.addworklist" link="#{operationActionBean.doOperation('addCurrentDocumentToWorklist')}" order="60" type="link">
          <category>DAM_ASSET_VIEW_ACTIONS</category>
          <filter-id>not_folder</filter-id>
          <filter-id>not_anonymous</filter-id>
          <properties>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>
  • <action icon="/icons/printer.gif" id="damPrint" label="label.print" link="#{restHelper.doPrint(themeActions.defaultTheme)}" order="70">
          <category>DAM_ASSET_VIEW_ACTIONS</category>
          <properties>
            <property name="target">_blank</property>
          </properties>
        </action>
  • <action icon="/icons/like.png" id="damDocumentLike" label="command.like" link="#{likeActions.like(currentUser, currentDocument)}" order="5" type="link">
          <category>DAM_ASSET_VIEW_ACTIONS</category>
          <filter-id>mutable_document</filter-id>
          <filter-id>not_folder</filter-id>
          <filter-id>userNotLiked</filter-id>
          <properties>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>
  • <action icon="/icons/unlike.png" id="damDocumentUnlike" label="command.unlike" link="#{likeActions.cancelLike(currentUser, currentDocument)}" order="5" type="link">
          <category>DAM_ASSET_VIEW_ACTIONS</category>
          <filter-id>mutable_document</filter-id>
          <filter-id>not_folder</filter-id>
          <filter-id>userLiked</filter-id>
          <properties>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>
  • <action icon="/icons/switch.png" id="damViewInDM" label="label.dam.action.viewInDM" link="#{damActions.viewInDM()}" order="65">
          <category>DAM_ASSET_VIEW_ACTIONS</category>
        </action>
  • <action icon="/icons/switch.png" id="damViewInDAM" label="label.dam.action.viewInDAM" link="#{damActions.viewInDAM()}" order="65">
          <category>DOCUMENT_UPPER_ACTION</category>
          <filter-id>hasAssetFacet</filter-id>
        </action>
  • <action icon="/icons/unlike.png" id="damSingleAssetBackToDam" label="label.dam.backToDam" link="#{damSearchActions.getSearchPermanentLinkUrl()}" order="50" type="bare_link">
          <category>DAM_SINGLE_ASSET_ACTIONS</category>
        </action>
  • <action id="damEditCurrentDocument" label="command.save" link="#{damActions.updateCurrentDocument}" order="0">
          <category>DAM_EDIT_DOCUMENT_FORM</category>
        </action>
  • <action id="damNewAsset" label="label.dam.new.asset" order="100" type="fancybox">
          <category>DAM_SEARCH_RESULTS_ACTIONS</category>
          <properties>
            <property name="include">/dam/incl/new_asset_box.xhtml</property>
            <property name="autoDimensions">false</property>
            <property name="width">60%</property>
            <property name="height">90%</property>
            <property name="modal">true</property>
            <property name="scrolling">auto</property>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>
  • <action id="damBulkImportAssets" label="label.dam.bulk.import.assets" order="200" type="fancybox">
          <category>DAM_SEARCH_RESULTS_ACTIONS</category>
          <properties>
            <property name="include">/dam/incl/bulk_import_assets_box.xhtml</property>
            <property name="dropContext">DAM_IMPORT_ASSETS</property>
            <property name="autoDimensions">false</property>
            <property name="width">85%</property>
            <property name="height">95%</property>
            <property name="modal">true</property>
            <property name="scrolling">auto</property>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>
  • <action icon="" id="damBulkEdit" label="command.bulk.edit" order="0" type="fancybox">
          <category>DAM_CURRENT_SELECTION_LIST</category>
          <filter-id>canEditCurrentSelection</filter-id>
          <properties>
            <property name="include">/incl/bulk_edit_box.xhtml</property>
            <property name="layout">damBulkEdit@edit</property>
            <property name="autoDimensions">false</property>
            <property name="width">50%</property>
            <property name="height">70%</property>
            <property name="modal">true</property>
            <property name="scrolling">auto</property>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>
  • <action id="CURRENT_SELECTION_ADDTOLIST">
          <category>DAM_CURRENT_SELECTION_LIST</category>
        </action>
  • <action id="CURRENT_SELECTION_TRASH">
          <category>DAM_CURRENT_SELECTION_LIST</category>
        </action>
  • <action id="DamSavedSearches" label="label.home.dam.saved.searches" link="dam/incl/saved_searches.xhtml" order="10">
          <category>SavedSearches_sub_tab</category>
          <filter-id>not_readonly</filter-id>
        </action>
  • <action confirm="if( !confirmDeleteDocumentsForever() ) return false;" help="comand.deleteDocs.help" icon="" id="damCurrentSelectionDelete" label="command.trashDocs" link="#{deleteActions.purgeSelection('DAM_SAVED_SEARCHES_CURRENT_SELECTION')}">
          <category>DAM_SAVED_SEARCHES_CURRENT_SELECTION_LIST</category>
          <filter id="canDeleteDamSavedSearches">
            <rule grant="true">
              <condition>#{deleteActions.getCanDelete('DAM_SAVED_SEARCHES_CURRENT_SELECTION')}</condition>
            </rule>
          </filter>
        </action>
  • <action id="TAB_MY_SUBSCRIPTIONS">
          <filter-id>denyForDamSearch</filter-id>
        </action>
  • <action id="TAB_MANAGE_SUBSCRIPTIONS">
          <filter-id>denyForDamSearch</filter-id>
        </action>
  • <action id="TAB_RELATIONS">
          <filter-id>denyForDamSearch</filter-id>
        </action>

XML Source

<extension point="actions" target="org.nuxeo.ecm.platform.actions.ActionService">

    <action id="dam" label="label.main.tab.dam" link="assets" order="50" type="template">
      <category>MAIN_TABS</category>
      <properties>
        <property name="template">/dam/incl/action/dam_main_tab_action_template.xhtml</property>
      </properties>
    </action>

    <!-- Search actions -->

    <action id="damSaveSearchAction" label="command.save" link="#{damSearchActions.saveSearch()}" order="10">
      <properties>
        <property name="ajaxSupport">true</property>
        <property name="ajaxReRender">
          damPanelLeft
        </property>
      </properties>
    </action>

    <action id="damSubmitSearch" label="label.dam.search.filter" link="#{damSearchActions.refreshAndRewind()}" order="10">
      <category>DAM_SEARCH_FILTER_ACTIONS</category>
      <properties>
        <property name="ajaxSupport">true</property>
        <property name="ajaxReRender">
          damPanelCenter, damPanelRight, damPanelLeft
        </property>
      </properties>
    </action>

    <action id="damClearSearch" immediate="true" label="label.dam.search.clear" link="#{damSearchActions.clearSearch()}" order="20">
      <category>DAM_SEARCH_FILTER_ACTIONS</category>
      <properties>
        <property name="ajaxSupport">true</property>
        <property name="ajaxReRender">
          damPanelLeft, damPanelCenter, damPanelRight
        </property>
      </properties>
    </action>

    <!-- Asset view actions -->
    <action icon="/icons/contextual_menu/preview.png" id="damShowFancyBoxPreview" label="label.document.preview" order="50" type="fancybox">
      <category>DAM_ASSET_VIEW_ACTIONS</category>
      <filter-id>view_preview</filter-id>
      <filter-id>not_folder</filter-id>
      <filter-id>not_anonymous</filter-id>
      <properties>
        <property name="iframe">
          #{previewActions.getCurrentDocumentPreviewPopupURL()}
        </property>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action icon="/icons/contextual_menu/unlocked.png" id="damDocumentLock" label="command.lock" link="#{lockActions.lockCurrentDocument}" order="10" type="link">
      <category>DAM_ASSET_VIEW_ACTIONS</category>
      <filter-id>mutable_document</filter-id>
      <filter-id>can_lock</filter-id>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action icon="/icons/contextual_menu/locked.png" id="damDocumentUnlock" label="command.unlock" link="#{lockActions.unlockCurrentDocument}" order="10" type="link">
      <category>DAM_ASSET_VIEW_ACTIONS</category>
      <filter-id>mutable_document</filter-id>
      <filter-id>can_unlock</filter-id>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action icon="/icons/contextual_menu/download.png" id="damDownloadAction" label="label.document.download" link="#{operationActionBean.doOperation('downloadFilesZip')}" order="30" type="link">
      <category>DAM_ASSET_VIEW_ACTIONS</category>
      <filter-id>documentHasBlobs</filter-id>
    </action>

    <action icon="/icons/contextual_menu/share.png" id="damPermalinkAction" label="label.permalink" order="20" type="fancybox">
      <category>DAM_ASSET_VIEW_ACTIONS</category>
      <properties>
        <property name="include">/dam/incl/permalink_box.xhtml</property>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action icon="/icons/contextual_menu/subscribe.png" id="damSubscribesAllDocNotifications" label="label.subscriptions.follow" link="#{subscriptionAction.updateAllSubscriptions}" order="40" type="link">
      <category>DAM_ASSET_VIEW_ACTIONS</category>
      <filter-id>hasNoSubscriptions</filter-id>
      <filter-id>canSubscribe</filter-id>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action icon="/icons/contextual_menu/unsubscribe.png" id="damUnsubscribesAllDocNotifications" label="label.subscriptions.unfollow" link="#{subscriptionAction.updateAllSubscriptions}" order="40" type="link">
      <category>DAM_ASSET_VIEW_ACTIONS</category>
      <filter-id>hasSubscriptions</filter-id>
      <filter-id>canSubscribe</filter-id>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action icon="/icons/action_add.gif" id="damAddCurrentDocumentToWorklist" immediate="true" label="help.command.clipboard.addworklist" link="#{operationActionBean.doOperation('addCurrentDocumentToWorklist')}" order="60" type="link">
      <category>DAM_ASSET_VIEW_ACTIONS</category>
      <filter-id>not_folder</filter-id>
      <filter-id>not_anonymous</filter-id>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action icon="/icons/printer.gif" id="damPrint" label="label.print" link="#{restHelper.doPrint(themeActions.defaultTheme)}" order="70">
      <category>DAM_ASSET_VIEW_ACTIONS</category>
      <properties>
        <property name="target">_blank</property>
      </properties>
    </action>

    <action icon="/icons/like.png" id="damDocumentLike" label="command.like" link="#{likeActions.like(currentUser, currentDocument)}" order="5" type="link">
      <category>DAM_ASSET_VIEW_ACTIONS</category>
      <filter-id>mutable_document</filter-id>
      <filter-id>not_folder</filter-id>
      <filter-id>userNotLiked</filter-id>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action icon="/icons/unlike.png" id="damDocumentUnlike" label="command.unlike" link="#{likeActions.cancelLike(currentUser, currentDocument)}" order="5" type="link">
      <category>DAM_ASSET_VIEW_ACTIONS</category>
      <filter-id>mutable_document</filter-id>
      <filter-id>not_folder</filter-id>
      <filter-id>userLiked</filter-id>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action icon="/icons/switch.png" id="damViewInDM" label="label.dam.action.viewInDM" link="#{damActions.viewInDM()}" order="65">
      <category>DAM_ASSET_VIEW_ACTIONS</category>
    </action>

    <action icon="/icons/switch.png" id="damViewInDAM" label="label.dam.action.viewInDAM" link="#{damActions.viewInDAM()}" order="65">
      <category>DOCUMENT_UPPER_ACTION</category>
      <filter-id>hasAssetFacet</filter-id>
    </action>

    <action icon="/icons/unlike.png" id="damSingleAssetBackToDam" label="label.dam.backToDam" link="#{damSearchActions.getSearchPermanentLinkUrl()}" order="50" type="bare_link">
      <category>DAM_SINGLE_ASSET_ACTIONS</category>
    </action>

    <action id="damEditCurrentDocument" label="command.save" link="#{damActions.updateCurrentDocument}" order="0">
      <category>DAM_EDIT_DOCUMENT_FORM</category>
    </action>

    <!-- Search results actions -->
    <action id="damNewAsset" label="label.dam.new.asset" order="100" type="fancybox">
      <category>DAM_SEARCH_RESULTS_ACTIONS</category>
      <properties>
        <property name="include">/dam/incl/new_asset_box.xhtml</property>
        <property name="autoDimensions">false</property>
        <property name="width">60%</property>
        <property name="height">90%</property>
        <property name="modal">true</property>
        <property name="scrolling">auto</property>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>
    <action id="damBulkImportAssets" label="label.dam.bulk.import.assets" order="200" type="fancybox">
      <category>DAM_SEARCH_RESULTS_ACTIONS</category>
      <properties>
        <property name="include">/dam/incl/bulk_import_assets_box.xhtml</property>
        <property name="dropContext">DAM_IMPORT_ASSETS</property>
        <property name="autoDimensions">false</property>
        <property name="width">85%</property>
        <property name="height">95%</property>
        <property name="modal">true</property>
        <property name="scrolling">auto</property>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <!-- Current selection actions -->
    <action icon="" id="damBulkEdit" label="command.bulk.edit" order="0" type="fancybox">
      <category>DAM_CURRENT_SELECTION_LIST</category>
      <filter-id>canEditCurrentSelection</filter-id>
      <properties>
        <property name="include">/incl/bulk_edit_box.xhtml</property>
        <property name="layout">damBulkEdit@edit</property>
        <property name="autoDimensions">false</property>
        <property name="width">50%</property>
        <property name="height">70%</property>
        <property name="modal">true</property>
        <property name="scrolling">auto</property>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action id="CURRENT_SELECTION_ADDTOLIST">
      <category>DAM_CURRENT_SELECTION_LIST</category>
    </action>

    <action id="CURRENT_SELECTION_TRASH">
      <category>DAM_CURRENT_SELECTION_LIST</category>
    </action>

    <!-- Saved searches -->
    <action id="DamSavedSearches" label="label.home.dam.saved.searches" link="dam/incl/saved_searches.xhtml" order="10">
      <category>SavedSearches_sub_tab</category>
      <filter-id>not_readonly</filter-id>
    </action>

    <action confirm="if( !confirmDeleteDocumentsForever() ) return false;" help="comand.deleteDocs.help" icon="" id="damCurrentSelectionDelete" label="command.trashDocs" link="#{deleteActions.purgeSelection('DAM_SAVED_SEARCHES_CURRENT_SELECTION')}">
      <category>DAM_SAVED_SEARCHES_CURRENT_SELECTION_LIST</category>
      <filter id="canDeleteDamSavedSearches">
        <rule grant="true">
          <condition>#{deleteActions.getCanDelete('DAM_SAVED_SEARCHES_CURRENT_SELECTION')}</condition>
        </rule>
      </filter>
    </action>

    <action id="TAB_MY_SUBSCRIPTIONS">
      <filter-id>denyForDamSearch</filter-id>
    </action>

    <action id="TAB_MANAGE_SUBSCRIPTIONS">
      <filter-id>denyForDamSearch</filter-id>
    </action>

    <action id="TAB_RELATIONS">
      <filter-id>denyForDamSearch</filter-id>
    </action>

  </extension>